package com.example;

public class Dish {
    private String name;//菜品名称
    private double price;//菜品价格

    public void profile(){
        System.out.println();
    }

    public Dish(String name,double price){
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    
}
